<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 不等待DOM渲染完，就开始加载 -->
    <!--<script src="1.js" async></script>-->
    <!-- 等到所有DOM渲染完后再去加载 -->
    <!--<script src="1.js" defer></script>-->
    <script src="1.js"></script>
    <script src="2.js"></script>
    <script src="3.js"></script>
</head>

<body>
    <div></div>
    <script>
        //模块化
        /*
            异步加载
            私密不漏
            重名不怕
            依赖不乱
        */
        //如果有重名的函数，那就后来者居上
        console.log(test)
    </script>
</body>

</html>